<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <title>修改数据</title>
</head>
<body class="container">
<div class="row">
    <div class="col-md-12">
        <form action="{:url('update')}" method="post">
            <label>姓 名：</label>
            <input type="hidden" name="id" value="{$Teacher->getData('id')}"/>
            <input type="text" name="name" value="{$Teacher->getData('name')}"/><br/>
            <label>用户名：</label>
            <input type="text" name="username" value="{$Teacher->getData('username')}"/><br/>
            <label>性 别：</label>
            <select name="sex">
                <option value="0">男</option>
                <option value="1" {eq name="Teacher->getData('sex')" value="1" }selected="selected" {/eq}>女</option>
            </select><br/>
            <label>邮 箱：</label>
            <input type="email" name="email" value="{$Teacher->getData('email')}"/><br/>
            <!-- <input type="hidden" name="create_time" value="{:time()}" />-->
            <button type="submit">保存</button>
        </form>
    </div>
</div>

</body>
</html>